import { createApp } from 'vue'
import App from './App.vue'
import router from "./router/index"
import store from "./store/index"
import './style.css'
import 'element-plus/es/components/message/style/css'
import 'element-plus/es/components/loading/style/css'
import 'element-plus/es/components/message-box/style/css'

const app = createApp(App)

app.config.globalProperties.$log = console.log
app.config.globalProperties.$to = url => {
  window.open(url)
}

app.use(router)
app.use(store)
app.mount('#app')